package com.kila.entity;

public class Student {
    private int stuNo;
    private String stuName;
    private int stuAge;
    private String graName;
    private boolean sex;

    public boolean isSex() {
        return sex;
    }

    public void setSex(boolean sex) {
        this.sex = sex;
    }


    public Student() {
    }

    public Student(int stuNo, String stuName, int stuAge, String granName) {
        this.stuNo = stuNo;
        this.stuName = stuName;
        this.stuAge = stuAge;
        this.graName = granName;
    }

    public int getStuNo() {
        return stuNo;
    }

    public void setStuNo(int stuNo) {
        this.stuNo = stuNo;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public int getStuAge() {
        return stuAge;
    }

    public void setStuAge(int stuAge) {
        this.stuAge = stuAge;
    }

    public String getGraName() {
        return graName;
    }

    public void setGraName(String graName) {
        this.graName = graName;
    }

    @Override
    public String toString(){
        String str ="stuno:"+stuNo+"-stuname:"+stuName+"-stuage:"+stuAge+"-graname:"+graName+"sex:"+this.sex;
      //  System.out.println(str);
        return str ;
    }




}
